<form id="pagerForm" method="post" action="">
	<input type="hidden" name="pageNum" value="{$pageNum}" />
	<input type="hidden" name="numPerPage" value="{$numPerPage}" />
	<input type="hidden" name="orderField" value="{$orderField}" />
	<input type="hidden" name="orderDirection" value="{$orderDirection}" />
	<input type="hidden" name="keywords" value="{$keywords}" />
	<input type="hidden" name="sfield" value="{$sfield}" />
	<input type="hidden" name="platform" value="{$platform}" />
</form>

<div class="pageHeader">
	<form rel="pagerForm" onsubmit="return navTabSearch(this);" action="" method="post">
		<input type="hidden" name="m" value="{$module_name}" />
		<input type="hidden" name="a" value="{$action_name}" />
	<div class="searchBar">
		<ul class="searchContent">
			<li style="width:170px;">
				<label style="width:50px;">关键字：</label>
				<input type="text" name="keywords" value="{$keywords}" style="width:80px;"/>
			</li>
			<li style="width:60px;">
			<select name="sfield" class="combox">
				<option value="all" {if $sfield=="all"}selected="selected"{/if}>全部</option>
				<option value="user_id" {if $sfield=="user_id"}selected="selected"{/if}>会员ID</option>
                <option value="agent_id" {if $sfield=="agent_id"}selected="selected"{/if}>专营商ID</option>
                <option value="id" {if $sfield=="id"}selected="selected"{/if}>ID</option>
			</select>
			</li>
			<!--<li style="width:380px;">
                <label style="width:60px;">商户区域：</label>
                <select name="province"   ref="city_member" refUrl="{:U('Bizbase/area')}&id={value}&level=2" class="combox">
                    <option value="all">请选择省份...</option>
                    <volist name="Area_list" id="vo">
                        {if $vo['parentid'] == 0}
                        <option value="{$vo['id']}" {if $province==$vo['id']}selected="selected"{/if}>{$vo['name']}</option>
                        {/if}
                    </volist>
                  </select>
                  <select name="city" ref="area_member" refUrl="{:U('Bizbase/area')}&id={value}&level=3" id="city_member" class="combox">
                    <option value="all">请选择城市...</option>
                    {if !empty($city)}
                    <volist name="Area_list" id="vo">
                        {if $vo['parentid'] == $province}
                        <option value="{$vo['id']}" {if $city==$vo['id']}selected="selected"{/if}>{$vo['name']}</option>
                        {/if}
                    </volist>
                    {/if}
                  </select>
                  <select name="area" id="area_member" class="combox">
                    <option value="all">请选择区域...</option>
                    {if !empty($area)}
                    <volist name="Area_list" id="vo">
                        {if $vo['parentid'] == $city}
                        <option value="{$vo['id']}" {if $area==$vo['id']}selected="selected"{/if}>{$vo['name']}</option>
                        {/if}
                    </volist>
                    {/if}
                  </select>
    </li>-->
			<div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div>
		</ul>
	</div>
	</form>
</div>
<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<!--<li><a class="icon" width="830" height="380" href="{:U('Agent/detail')}&id={sid_dv}" target="dialog" warn="请选择一条信息"><span>查看会员订单</span></a></li>
			<li><a class="icon" width="830" height="380" href="{:U('Agent/detail')}&id={sid_dv}" target="dialog" warn="请选择一条信息"><span>查看会员资产流水</span></a></li>-->
			<!--<li><a class="icon" href="javascript:$.printBox('user_list')"><span>打印</span></a></li>-->
		</ul>
	</div>
	<div id="user_list">
	<table class="table" layoutH="110">
		<thead>
			<tr>
				<th width="30"><input type="checkbox" group="ids[]" class="checkboxCtrl"></th>
				<th width="80">会员ID(帐号)</th>
                <th width="260">商家名称(联系人)</th> 
                <th width="330">地址</th>
                <th width="80">会员归属</th>
                <th width="180">电话/手机</th>
                <th width="120" >时间</th>
                <th width="150">CV</th>
                <th width="150">BV</th>
                <th width="150">PV</th>
                <th width="150">MV</th>
                <th width="150">邮箱</th>
			</tr>
		</thead>
		<tbody>
<volist name="list" id="vo">
			<tr target="sid_dv" rel="{$vo['id']}">
				<td><input name="ids[]" value="{$vo['id']}" type="checkbox"></td>
				<td><a target="dialog" style="color:blue;" width="630" height="590" rel="User_detail_{$vo['user_id']}" href="{:U('User/detail',array('id'=>$vo['user_id']))}">{$vo['user_id']}({$vo['username']})</a></td>
				<td>{if empty($vo[company])}{$vo[realname]}{else}{$vo[company]}{if !empty($vo[realname])}({$vo[realname]}){/if}{/if}</td>
				<td><a title="{$Area[$vo[province]]['name']}/{$Area[$vo[city]]['name']}/{$Area[$vo[area]]['name']}/{$vo[address]}">{$Area[$vo[province]]['name']}{if $vo[city]!=0}|{$Area[$vo[city]]['name']}{/if}{if $vo[area]!=0}|{$Area[$vo[area]]['name']}{/if}</a></td>
				<td><a target="dialog" style="color:blue;" width="630" height="590" rel="User_detail_{$vo['user_id']}" href="{:U('User/detail',array('id'=>$vo['agent_id']))}">{$vo['agent_id']}</a></td>
				<td>{if empty($vo[tel])}{$vo[mobile]}{else}{$vo[tel]}({$vo[mobile]}){/if}</td>
				<td>{$vo[createtime] ? $vo[createtime]|date='Y-m-d',###:''}</td>
				<td>{$vo[CV] ? $vo[CV]/100:0}</td>
				<td>{$vo[BV] ? $vo[BV]/100:0}</td>
				<td>{$vo[PV] ? $vo[PV]/100:0}</td>
				<td>{$vo[MV] ? $vo[MV]/100:0}</td>
				<td>{$vo[email]}</td>
			</tr>
</volist>
		</tbody>
	</table>
	</div>
	<div class="panelBar">
		<div class="pages">
			<span>显示</span>
			<select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
				<option value="20" {if $numPerPage==20}selected="selected"{/if}>20</option>
				<option value="50" {if $numPerPage==50}selected="selected"{/if}>50</option>
				<option value="66" {if $numPerPage==66}selected="selected"{/if}>66</option>
				<option value="100" {if $numPerPage==100}selected="selected"{/if}>100</option>
				<option value="200" {if $numPerPage==200}selected="selected"{/if}>200</option>
			</select>
			<span>条，共{$totalCount}条</span>
		</div>
		
		<div class="pagination" targetType="navTab" totalCount="{$totalCount}" numPerPage="{$numPerPage}" pageNumShown="10" currentPage="{$pageNum}"></div>
	</div>
</div>
